package com.summer.web.jms;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Created by thinkpad on 2018/7/14.
 */

@Component
public class Receiver {

    @JmsListener(destination = "my-destination")
    public void receiverMessageee(String messagee){
        System.out.println("接受到消息：" + messagee);

    }

}
